{% extends "admin/base_site.html" %}
{% load i18n %}

{% block breadcrumbs %}
<div class="breadcrumbs">
  <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
  <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo; 
  <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
  <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
  {% trans 'Preview' %}
</div>
{% endblock %}

{% block content %}
<h2>{{ object }}</h2>
<ol>
{% for question in questions %}
  <li>
    {{ question }}
    <ul>{{ question.answers|unordered_list }}</ul>
  </li>
{% endfor %}
</ol>
{%if can_publish %}
  <p>{% blocktrans with object as escaped_object %}Are you sure you want to publish the "{{ escaped_object }}" questionnaire? Once published it can't be changed nor deleted.{% endblocktrans %}</p>
  <form action="" method="post">
    <div>
      <input type="hidden" name="post" value="yes" />
      <input type="submit" value="{% trans "Yes, I'm sure" %}" />
      <a href="../">{% trans "No, I want to continue editing" %}</a>
    </div>
  </form>
{% else %}
  <p>{% blocktrans with object as escaped_object %}You can't publish the "{{ escaped_object }}" questionnaire because it has to have at least {{ min_questions }} questions (it has {{ num_questions }}).{% endblocktrans %}</p>
  <a href="../">{% trans "Add some more questions" %}</a>
{% endif %}
{% endblock %}
